package com.iplant.basic.service.basicenum.bms;

import com.iplant.base.po.enums.BaseEnum;

public enum BMSEmployeeType implements BaseEnum {
	/**
	 * SCH
	 */
	Default(0, "默认"),
	/**
	 * 正式
	 */
	Regular(1, "正式"),
	/**
	 * 试用
	 */
	Probationary(2, "试用"),
	/**
	 * 实习
	 */
	Interns(3, "实习"),
	/**
	 * 劳务派遣
	 */
	OutSource(4, "劳务派遣"),
	/**
	 * 返聘
	 */
	RaRetirement(5, "返聘"),
	/**
	 * 退休
	 */
	Retirement(6, "退休");

	private int value;
	private String label;
	private String remark;

	private BMSEmployeeType(int value, String label) {
		this.value = value;
		this.label = label;
	}
	private BMSEmployeeType(int value, String label, String remark) {
		this.value = value;
		this.label = label;
		this.remark = remark;
	}

	/**
	 * 通过 value 的数值获取枚举实例
	 *
	 * @param val
	 * @return
	 */
	public static BMSEmployeeType getEnumType(int val) {
		for (BMSEmployeeType type : BMSEmployeeType.values()) {
			if (type.getValue() == val) {
				return type;
			}
		}
		return Default;
	}

	@Override
	public int getValue() {
		return value;
	}

	@Override
	public void setValue(int value) {
		this.value = value;
	}

	@Override
	public String getLabel() {
		return label;
	}

	@Override
	public void setLabel(String label) {
		this.label = label;
	}

	@Override
	public String getRemark() {
		return remark;
	}

	@Override
	public void setRemark(String remark) {
		this.remark = remark;
	}
}
